﻿<!doctype html>
<html class="no-js">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>关注的进口商</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
 
  <link rel="stylesheet" href="assets/css/amazeui.min.css">
   <link rel="stylesheet" href="assets/css/document.css">
   	
    <script src="assets/js/jquery.min.js"></script>
	<script src="assets/js/amazeui.js"></script>
	<script src="assets/js/memu.js"></script>
	<script src="assets/js/baiduTemplate.js"></script>
	<script src="assets/js/PublicFunction.js"></script>	
  <style type="text/css">


  </style>
</head>
<body>



<div id="parent" >
<div data-am-sticky id="header">
	<header data-am-widget="header" class="am-header am-header-default">
		<div class="am-header-left am-header-nav">
			<a  href="javascript:backA()" class="">
				
				<i class="am-header-icon am-icon-chevron-left"></i>
			</a>
		</div>
		<h1 class="am-header-title" style="font-size:14px;">
			我关注的人
		</h1>
		<div class="am-header-right am-header-nav">
			<a href="javascript:menu()" class="">
				<i class="am-header-icon am-icon-list-ul"></i>
			</a>
			
		</div>
	<!-- 遮罩-->
	<div class="am-modal am-modal-no-btn" tabindex="-1" id="memu-modal">
  
	</div>
	</header>
	
	
</div>
	


<ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-4 am-gallery-default" id="div_userprofile">
  <script type="text/javascript" id="userprofile"> 
  	<%for(var i =0;i<list.length;i++){%>
  		<li>
    		<div class="am-gallery-item">
      			<a href="javascript:gotoUserInfo('<%=list[i].userName%>')" class="">
        			<img src="<%=server%><%=list[i].avatar%>" alt="远方 有一个地方 那里种有我们的梦想"/>
       				<h3 class="am-gallery-title" style="text-align: center;"><%=list[i].userName%></h3>
      			</a>
    		</div>
  		</li>
  	 <%}%>
  </script>
</ul>
</div>



<script type="text/javascript">
<!--页面初始化-->
function init(w,h) {
	var userjson = getUserProfileByUserName();
	if(userjson!=null &&userjson.length>0){
	
		var data = strToJson(userjson);
		var serverpath= Public_method.getServerPath();
		var followList = data.followList;
		
			var data={
					server:serverpath+"upload/user/",
					list:followList
				} 
		
		var bat=baidu.template;
		var title_img_html=bat('userprofile',data);
	
		//渲染
		document.getElementById('div_userprofile').innerHTML=title_img_html;
	
		
	}
	//生成menu
	generateMenu();
  };
  
  function gotoUserInfo(username){
		Public_method.gotoUserInfo(username);
	}

</script>
</body>
</html>
